<style>
 /*验证：提示信息样式 begin*/
 .am-alert-danger {
    background-color: transparent;
    border-color: transparent;
    color: red;
  }
  .am-alert {
    margin-bottom: 1em;
    padding: .625em;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  /*验证：提示信息样式 end*/
  /*附件上传*/
  .am-progress-xs {
    height: .2rem;
  }
  .am-progress {
    margin-bottom: 0;
  }
</style>

<input type="hidden" id="knowledgeBaseId" name="knowledgeBaseId" value="${knowledgeBase.id!''}"/>


<div class="am-g am-form-group am-margin-top">
  <div class="am-u-sm-4 am-u-md-2 am-text-right">
    <span style="color: red;">*</span>名称
  </div>
  <div class="am-u-sm-6 am-u-md-6">
    <input data-validation-message="输入名称" type="text"  name="name" id="name" minlength="2" maxlength="50" placeholder="输入知识库名称" required value="${knowledgeBase.name!''}"/>
  </div>
  <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>





<div class="am-g am-form-group am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">类型</div>
    <div class="am-u-sm-6 am-u-md-6">
        <select id="type" name="type" data-am-selected="{btnWidth:'100%',maxHeight: 500,searchBox: 1}">
            <%for(type in typeList!){%>
            <option value="${type.value}"
            <%if (knowledgeBase.type!""==type.value){%>
            selected = "selected"
            <%}%>
            >${type.key}</option>
            <%}%>
        </select>
    </div>
    <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>



<div class="am-g am-form-group am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">
        资费编码
    </div>
    <div class="am-u-sm-6 am-u-md-6">
        <input  type="text"  name="code" id="code" minlength="0" maxlength="30" placeholder="输入资费编码" value="${knowledgeBase.code!''}"/>
    </div>
    <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>





<div class="am-g am-form-group am-margin-top">
    <div class="am-u-sm-2 am-u-md-2 am-text-right">
        <span style="color: red;">*</span>可见地市
    </div>
    <div class="am-u-sm-6 am-u-md-6">
        <input type="hidden" value="" id="city_ids" name="city_ids"/>
        <select  data-validation-message="请选择可见地市"  required onchange="getCitySelectVal()"
                 multiple data-am-selected="{btnWidth:'100%',maxHeight:180,maxWidth:150,searchBox: 1}"
                 id="city_select" name="city_select">
            <%for(city in selectCitys){%>
            <option value="${city.value}" selected >${city.key}</option>
            <%}%>
            <%for(city in ortherCitys){%>
            <option value="${city.value}">${city.key}</option>
            <%}%>
        </select>
    </div>
    <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>






<div class="am-g am-form-group am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">
        <span style="color: red;">*</span>详细描述
    </div>
    <div class="am-u-sm-6 am-u-md-6">
        <textarea  data-validation-message="输入详细描述" id="detail" rows="5"
                   name="detail" minlength="0" maxlength="5000"
                   required placeholder="请输入备注信息，最多256个字符">${knowledgeBase.detail!}</textarea>
    </div>
    <div class="am-u-sm-2 am-u-md-4 input-msg"></div>
</div>

<div class="am-g am-form-group am-margin-top">
    <div class="am-u-sm-4 am-u-md-2 am-text-right">是否有效</div>
    <div class="am-u-sm-12 am-u-md-4 switch-button">
        <input id="switch" name="switch" type="checkbox" data-size='xs'
               data-am-switch data-off-text="无效" data-on-text="有效"<%if
        (knowledgeBase.enabled! == null || knowledgeBase.enabled! == 1){%> checked <%}%> > <input
            type="hidden" class="am-input-sm" name="enabled" id="enabled"
            value="${knowledgeBase.enabled!0}" />
    </div>
    <div class="am-hide-sm-only am-u-md-1" style="color: red;"></div>
    <div class="am-u-sm-2 am-u-md-5 input-msg"></div>
</div>



